package com.sw.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sw.pojo.TransactionInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
@Repository
public interface TransactionDao extends BaseMapper<TransactionInfo> {
    @Select("SELECT MAX(blockNumber)+1 FROM transaction WHERE symbol LIKE 'ETH%'")
    BigInteger selectMaxNum();
}
